/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.givebonus.web.daphne
   Module Description   :

   Date Created      : 2010/9/24
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.givebonus.web;

import java.io.IOException;
import java.math.BigDecimal;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

/**
 * @author feeling.wang
 * 
 */
public class daphne {

	/**
	 * @param args
	 * @throws IOException
	 * @throws InvalidFormatException
	 */
	public static void main(String[] args) throws IOException, InvalidFormatException {
		BigDecimal a1 = new BigDecimal(3795.5);
		BigDecimal a2 = new BigDecimal(3795.50);
		System.out.println(a1.compareTo(a2));
		// final DaphneProductService daphneProductService = null;
		// System.out.println(StringUtils.contains("235", "2"));
		// FileOutputStream fos = new FileOutputStream("D:/yaodian100.com/daphneProduct.xls");
		// File file = new File("D:/yaodian100.com/sit_daphne_table_export.xls");
		// InputStream inp = new FileInputStream(file);
		// Workbook wb = WorkbookFactory.create(inp);
		// Sheet sheet = wb.getSheetAt(0);
		// Cell cell = null;
		// DecimalFormat df = new DecimalFormat("00000000");
		// List<String> stringList = new ArrayList<String>();
		// for (int i = 0; i <= sheet.getLastRowNum(); i++) {
		// Row row = sheet.getRow(i);
		// cell = row.getCell(0);
		// stringList.add(df.format(cell.getNumericCellValue()));
		// }
		//
		// String[] productIds = stringList.toArray(new String[0]);
		//
		// daphneProductService.importDaphneProduct(DateUtil.formatDate(new Date(), "yyyyMMdd"), productIds);
		// System.out.println(ServerValue.getProdInnerIP());
		// Pattern pattern = Pattern.compile(ServerValue.getProdInnerIP());
		// Matcher matcher = pattern.matcher("201.10.101.10");
		// if (matcher.find()) {
		// System.out.println("xxxx");
		// } else {
		// System.out.println("xxxx2");
		// }
	}

}
